home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 931 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: news.production.compuserve.com!news
  2. From: Steve Harris <100016.2166@CompuServe.COM>
  3. Newsgroups: comp.lang.c++,comp.lang.fortran
  4. Subject: Calling FORTRAN from C++
  5. Date: 8 Jan 1996 14:29:13 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4cr9np$2hr$1@mhadg.production.compuserve.com>
  8.  
  9. Hello,
  10. Can anyone provide me with a simple example, with source code and 
  11. an 'idiots' step guide, on how to call FORTRAN code from MS 
  12. VISUAL C++? I have read through the section on mixed language 
  13. programming in the 'Programming Techniques' manual for MS VISUAL 
  14. C++, but can't even get the examples in that text to work. When I 
  15. issue the following command to link the two object files:
  16.  
  17.     link small test,,,,
  18.  
  19. I get the following errror:
  20.  
  21.     test.obj : fatal error L1101 : invalid object module
  22.     Object file offset : 1 Record type : 4c
  23.  
  24. A simple working example of a few lines would be much 
  25. appreciated, especially showing how to compile/link and call the 
  26. FORTRAN code from C++.
  27. Thanks for your time :-)
  28. Steve Harris
  29.